﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcRags.Examples.Models;
using MvcRags.Sorting;

namespace MvcRags.Examples.Controllers
{
    public class SortingController : Controller
    {
        private ExampleDataContext db = new ExampleDataContext();
        //
        // GET: /Sorting/

        public ActionResult Index()
        {
            IQueryable<Customer> customers = this.Sort(db.Customers, m => m.Name);
            return View(customers);
        }

    }
}
